package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc ConfSchemeCodeDto
 * @使用场景
 */
@Data
public class ConfSchemeCodeDto extends BaseDto implements Serializable {

    /**
     * 答案ID
     */
    @ApiModelProperty("答案ID")
    private String optionResultId;

    /**
     * 答案值
     */
    @ApiModelProperty("答案值")
    private String endValue;

    /**
     * 答案归属对象ID
     */
    @ApiModelProperty("答案归属对象ID")
    private String resultAspObjId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ConfSchemeCodeDto that = (ConfSchemeCodeDto) o;
        return optionResultId == that.optionResultId && endValue == that.endValue && resultAspObjId == that.resultAspObjId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), optionResultId, endValue, resultAspObjId);
    }


}
   